Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize merging array elements #735

Merged
merged 3 commits into from
Sep 6, 2017
Merged

Optimize merging array elements #735

merged 3 commits into from
Sep 6, 2017

Conversation

wgliang
Copy link
Contributor

@wgliang wgliang commented Sep 6, 2017

Optimize merging array elements

@sre-bot
Copy link
Contributor

sre-bot commented Sep 6, 2017

Hi contributor, thanks for your PR.

This patch needs to be approved by someone of admins. They should reply with "/ok-to-test" to accept this PR for running test automatically.

@CLAassistant
Copy link

CLAassistant commented Sep 6, 2017

CLA assistant check
All committers have signed the CLA.

@disksing
Copy link
Contributor

disksing commented Sep 6, 2017

/ok-to-test

server/util.go Outdated
for _, str := range strs {
data = append(data, str)
}
data = append(data, strs...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe copy is more suitable here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function maybe can be remove.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It's unused. Please help to remove it.

@wgliang
Copy link
Contributor Author

wgliang commented Sep 6, 2017

It' OK!

Copy link
Contributor

@disksing disksing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@disksing disksing merged commit 5cb02b1 into tikv:master Sep 6, 2017
@sre-bot sre-bot added the contribution This PR is from a community contributor. label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants